#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>
#include <QMessageBox>
#include "stuct_message.h"
#include "zhuce.h" //注册界面
#include "putongui.h" //普通用户登入之后的界面
#include "superui.h" //超级用户的界面
#include <QString>
#include <QHostAddress>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void on_dengru_clicked();

    void on_zhuce_clicked();
signals:
    //注册信息传输socketl流的信号
    void transmission(messageText *messa,QTcpSocket *sock); //传输给注册界面的
    void transmissionPuTong(messageText *messa,QTcpSocket *sock); //传递给普通界面
private:
    Ui::Widget *ui;
    QTcpSocket *socket;
    zhuce *zhuceShow;
    puTongUI *putongShow;
    messageText *message;
};
#endif // WIDGET_H
